<?php


namespace Addons\School\Pipeline;


use Addons\School\Models\School;
use Closure;
use Expand\Pipeline\MyPipeline;

class SchoolPipeline  implements MyPipeline
{

    public function handle($content, Closure $next)
    {
        return $next($content);
        // try {

        //     $info = School::where('code', $content)->first();

        //     $data = $info->content;

        //     if (method_exists(app('School'), $info->type . "Content")) {

        //         $data = app('school')->{$info->type . "Content"}($info);
        //     }

        //     return $next($data);

        // } catch (\Exception $exception) {


        // }
    }
}
